package com.qihetimes.earthangel.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 积分记录表
 * </p>
 *
 * @author f4cklangzi@gmail.com
 * @since 2022-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("integral_record")
@ApiModel(value="IntegralRecord对象", description="积分记录表")
public class IntegralRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "物品ID")
    @TableField("goods_id")
    private String goodsId;

    @ApiModelProperty(value = "变更类别")
    @TableField("change_type")
    private String changeType;

    @ApiModelProperty(value = "变动额")
    @TableField("change_count")
    private Integer changeCount;

    @ApiModelProperty(value = "备注内容")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "添加时间")
    @TableField("created_at")
    private LocalDateTime createdAt;


}
